﻿using ERPPublic;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProcurementManagement.Domain.ProcurementDomain
{
    /// <summary>
    /// 采购询价表
    /// </summary>
    [SugarTable("ProcureEnquiry")]
    public class ProcureEnquiry : Audit
    {
        /// <summary>
        /// 采购询价id
        /// </summary>
        // 主键和自增
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int ProcureEnquiryId { get; set; }
        /// <summary>
        /// 单据编号
        /// </summary>
        public string? PEDocumentsNumber { get; set; } = Guid.NewGuid().ToString();
        /// <summary>
        /// 定价人员
        /// </summary>
        public string? PEPricingPeople { get; set; }
        /// <summary>
        /// 询价人员
        /// </summary>
        public string? PEInquiryClerk { get; set; }
        /// <summary>
        /// 询价日期
        /// </summary>
        public string? PEInquiryDate { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public int? ProductId { get; set; }
        /// <summary>
        /// 产品数量
        /// </summary>
        public int? PENum { get; set; }
        /// <summary>
        /// 产品单价
        /// </summary>
        public decimal? PEPrice { get; set; }
        /// <summary>
        /// 税率
        /// </summary>
        public decimal? PETaxRate { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool? IsState { get; set; }
    }
}
